package com.whut;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/*@SpringBootApplication
@MapperScan("com.whut.mapper")
public class SpringbootMybatisIniApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootMybatisIniApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 注意这里要指向原先用main方法执行的Application启动类
        return builder.sources(SpringbootMybatisIniApplication.class);
    }

}*/
//@EnableAdminServer
@SpringBootApplication
@MapperScan("com.whut.mapper")
public class SpringbootMybatisIniApplication extends SpringBootServletInitializer{
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SpringbootMybatisIniApplication.class);
    }




    public static void main(String[] args) {
        SpringApplication.run(SpringbootMybatisIniApplication.class, args);
    }



}
